package ru.sh.ui;

import javax.microedition.khronos.opengles.GL10;

import ru.sh.panel.ShotPowerPanel;
import ru.sh.screen.SHGameScreen;
import android.view.MotionEvent;
import framework.objects.ui.UI;

public class SimpleUI extends UI {

	private FireBtn fireBtn;
	private MoveBtn moveBtn;
	private Joy joy;
	private ShotPowerPanel shotPowerPanel;
	
	public SimpleUI(SHGameScreen screen) {
		super(screen);
		fireBtn = new FireBtn(screen, this, 700, 80);
		moveBtn = new MoveBtn(screen, this, 870, 80);
		joy = new Joy(screen, this, 120, 120);
		shotPowerPanel = new ShotPowerPanel(screen, this, 760, 520);
	}

	@Override
	public void draw(GL10 gl, float deltaTime) {
		
		fireBtn.draw(gl, deltaTime);
		moveBtn.draw(gl, deltaTime);
		joy.draw(gl, deltaTime);
		shotPowerPanel.draw(gl, deltaTime);

	}

	@Override
	public void handle(MotionEvent event) {
		
		fireBtn.handle(event);
		moveBtn.handle(event);
		joy.handle(event);
		
	}

	@Override
	protected void initPresentation() {
		// TODO Auto-generated method stub
		
	}

}
